this._height = 0;
this._x = 0;
this._y = 0;
+ this._workspaceRatioSpacing = 0;
this._spacing = 0;
this._lostWorkspaces = [];
this._animating = false; // tweening
this._swipeScrollEndId = 0;
},
- setGeometry: function(x, y, width, height) {
+ setGeometry: function(x, y, width, height, spacing) {
if (this._x == x && this._y == y &&
this._width == width && this._height == height)
return;
this._height = height;
this._x = x;
this._y = y;
+ this._workspaceRatioSpacing = spacing;
for (let i = 0; i < this._workspaces.length; i++)
this._workspaces[i].setGeometry(x, y, width, height);
Tweener.removeTweens(workspace.actor);
let opacity = (this._inDrag && w != active) ? 200 : 255;
- let y = (w - active) * (this._height + this._spacing);
+ let y = (w - active) * (this._height + this._spacing + this._workspaceRatioSpacing);
if (showAnimation) {
let params = { y: y,
}
height = (fullHeight / fullWidth) * width;
- y += (fullHeight - height) / 2;
+ let difference = fullHeight - height;
+ y += difference / 2;
- this.workspacesView.setGeometry(x, y, width, height);
+ this.workspacesView.setGeometry(x, y, width, height, difference);
},
_onRestacked: function() {